home *** CD-ROM | disk | FTP | other *** search
- /*
- Flash (SWF) interface to httrack
- Using the library provided by Macromedia(tm)
- from http://www.macromedia.com/software/flash/download/search_engine/index.html
- See swf2html_license.txt for more information on the license
- */
-
- /*
-
- swf2html_cls.h
-
- */
-
- #ifndef __SWF2HTML_STDIO_H
- #define __SWF2HTML_STDIO_H
-
- typedef int (* htsmodAddLink)(void* handle, char* link);
-
- #include "swf2html.h"
-
- class Swf2HtmlConverterCallback : public Swf2HtmlConverter
- {
- public:
- Swf2HtmlConverterCallback();
-
- bool ConvertSwf2Html(void* buffer, int size,
- void* handle, htsmodAddLink callbackLink);
-
- protected:
- virtual void PutByte(swf_U8 ch);
- virtual void PutString(const char *str);
- virtual void PutLink(const char *str);
- virtual swf_S32 ReadInput(void *buffer, swf_S32 count);
- virtual void DisplayError(const char *str);
-
- private:
- htsmodAddLink m_callbackLink;
- char* m_buffer;
- int m_size;
- int m_offs;
- void* m_handle;
- };
-
- #endif /* __SWF2HTML_STDIO_H */
-